package com.party.mobile.biz.partner;

import com.party.core.exception.BusinessException;
import com.party.core.model.partner.PartnerLabel;
import com.party.core.service.partner.IPartnerLabelService;
import com.party.core.service.partner.IPartnerMemberLabelService;
import org.h2.util.New;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 合作商业务接口服务
 * party
 * Created by hqh
 * on 2018/8/22
 */
@Service
public class PartnerLabelBizService {
    @Autowired
    private IPartnerLabelService partnerLabelService;
    @Autowired
    private IPartnerMemberLabelService partnerMemberLabelService;
    /**
     * 通过机构id获取标签
     * @param organizationId 机构id
     * @return 标签
     * @throws Exception
     */
    public  List<Map<String,Object>> getLabels(String organizationId) throws BusinessException {
/*       List<PartnerLabel> pllist= partnerLabelService.getLabels(organizationId);
       List<Map<String,Object>> plmaps = new ArrayList<>();
       for (PartnerLabel pl:pllist){
           Map<String,Object> plmap=new HashMap<>();
           plmap.put("id",pl.getId());
           plmap.put("labelName",pl.getLabelName());
           plmap.put("labelNum",partnerMemberLabelService.getLabelNum(organizationId,pl.getId()));
           plmaps.add(plmap);
       }
        return plmaps;*/
return null;
    }
}
